﻿using AutoMapper.Configuration;
using MyToDo.Content;
using MyToDo.Dtos;

namespace MyToDo.Extensions
{
    public class AutoMapperProFile: MapperConfigurationExpression
    {
        public AutoMapperProFile()
        {
            CreateMap<ToDo,ToDoDto>().ReverseMap();
            CreateMap<Memo, MemoDto>().ReverseMap();
            CreateMap<User, UserDto>().ReverseMap();
        }
    }
}
